﻿<%@ Page Title="Roles" Language="C#" MasterPageFile="~/System/System.master" AutoEventWireup="true" CodeFile="Roles.aspx.cs" Inherits="System_Pages_Security_Roles" %>
<%@ Register Src="~/System/Controls/FieldTemplates/MessageText.ascx" TagName="MessageText" TagPrefix="ucc" %>
<%@ Register Src="~/System/Controls/FieldTemplates/SinglelineText.ascx" TagName="SinglelineText" TagPrefix="ucc" %>
<%@ Register Src="~/System/Controls/FieldTemplates/MultilineText.ascx" TagName="MultilineText" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SiteFox_Left" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SiteFox_Title" Runat="Server">
    <asp:Label ID="lab_Title" runat="server" Text="<%$ Resources:dcCommon, dc_Roles %>" CssClass="content-header-title" />
    <asp:UpdatePanel ID="up_Title" runat="server" class="content-header-actions">
        <ContentTemplate>
            <asp:ImageButton ID="imb_Add" runat="server" ImageUrl="~/System/Design/ico/24x24/certificate_new.png" ToolTip="<%$ Resources:dcCommon, dc_New %>" onclick="imb_Add_Click" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteFox_Main" Runat="Server">
    <asp:UpdatePanel ID="up_Main" runat="server">
        <ContentTemplate>
            <asp:GridView runat="server" ID="gv_Roles" AutoGenerateColumns="false" CssClass="gridview" RowStyle-CssClass="gridview-row" HeaderStyle-CssClass="gridview-header" Width="100%" GridLines="None">
        	    <Columns>
                    <asp:BoundField DataField="Name" HeaderText="<%$ Resources:dcCommon, dc_Name %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:TemplateField>
        	            <ItemTemplate>
                            <asp:LinkButton ID="lib_Role_Delete" runat="server" ToolTip="<%$ Resources:dcCommon, dc_Delete %>" OnClick="lib_Role_Delete_Click" CssClass="gridview-btn gridview-btn-delete" 
                                CommandArgument='<%# Eval("ID") %>' />
                            <asp:LinkButton ID="lib_Role_Edit" runat="server" ToolTip="<%$ Resources:dcCommon, dc_Edit %>" OnClick="lib_Role_Edit_Click" CssClass="gridview-btn gridview-btn-edit" 
                                CommandArgument='<%# Eval("ID") %>' />
        	            </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Panel ID="pan_Background" runat="server" Visible="false" CssClass="background"></asp:Panel>
            <asp:Panel ID="pan_AddOrEdit" runat="server" Visible="false" CssClass="actionpanel">
                <div class="actionpanel-header">
                    <asp:Label ID="lab_AddOrEdit_Title" runat="server" Text="<%$ Resources:dcCommon, dc_Add %>" />
                    <asp:LinkButton ID="lib_AddOrEdit_Close" runat="server" CssClass="actionpanel-header-close" onclick="lib_AddOrEdit_Close_Click" />
                </div>
                <div class="actionpanel-content">
                    <ucc:SinglelineText ID="ucc_AddOrEdit_Name" runat="server" Title="<%$ Resources:dcCommon, dc_Name %>" IsReq="true" ValueMaxLength="20" />
                    <ucc:MultilineText ID="ucc_AddOrEdit_Description" runat="server" Title="<%$ Resources:dcCommon, dc_Description %>" IsReq="false" />
                    <ucc:MessageText ID="ucc_AddOrEdit_Message" runat="server" />
                    <asp:LinkButton ID="lib_AddOrEdit_Save" runat="server" CssClass="LinkButton" ValidationGroup="mainValGroup" Text="<%$ Resources:dcCommon, dc_Save %>" onclick="lib_AddOrEdit_Save_Click" />
                </div>
                <asp:HiddenField ID="hf_AddOrEdit_Id" runat="server" />
            </asp:Panel>
            <asp:Panel ID="pan_Delete" runat="server" Visible="false" CssClass="actionpanel">
                <div class="actionpanel-header">
                    <asp:Label ID="lab_Delete_Title" runat="server" Text="<%$ Resources:dcCommon, dc_Delete %>" />
                    <asp:LinkButton ID="lib_Delete_Close" runat="server" CssClass="actionpanel-header-close" onclick="lib_Delete_Close_Click" />
                </div>
                <div class="actionpanel-content">
                    <ucc:MessageText ID="ucc_Delete_Text" runat="server" Title="" Value="<%$ Resources:dcCommon, dc_ConfirmDeleting %>" />
                    <ucc:MessageText ID="ucc_Delete_Message" runat="server" />
                    <asp:LinkButton ID="lib_Delete_Ok" runat="server" CssClass="LinkButton" Text="<%$ Resources:dcCommon, dc_Confirm %>" ValidationGroup="mainValGroup" onclick="lib_Delete_Ok_Click" />
                </div>
                <asp:HiddenField ID="hf_Delete_Id" runat="server" />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

